package icu.xuyijie.springbootlearning1.chapter3.jdbc;

import java.util.Date;

/**
 * @author 徐一杰
 * @date 2025/02/25 10:41
 * @description 接收数据库查询出来的数据
 */
public class MyEntity {
    private Integer id;

    private String name;

    private Date create_time;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    @Override
    public String toString() {
        return "MyEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", create_time=" + create_time +
                '}';
    }
}
